package com.es.demo.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author chenx
 * @date 2022/12/28-15:57
 */
public class VehicleEcuDTO implements Serializable {
    private static final long serialVersionUID = -1882636030698267954L;
    private Long id;

    private String domainCode;

    private String vin;

    private Long modelId;

    private Long subModelId;

    private String ecuPartNum;

    private String ecuReqId;

    private String ecuDid;

    private String ecuSwDid;

    private String ecuSn;

    private String supplierCode;

    private String softwareVersion;

    private String hardwareVersion;

    private String productDate;

    private Integer status;

    private Integer upgradeType;

    private Date createTime;

    private Date clientTime;

    private Date serverTime;

    private Date updateTime;

    private Long partId;

    private String partName;

    private String requestId;

    private String modelName;

    private String brandName;

    private Date productTime;

    private Integer isTest;

    private String brandCode;

    private Integer source;

    private Integer isActive;
    private Integer curPage;
    private Integer PageSize;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VehicleEcuDTO that = (VehicleEcuDTO) o;
        if (Objects.equals(id, that.id)){
            return true;
        }
        return Objects.equals(domainCode, that.domainCode) && Objects.equals(vin, that.vin) && Objects.equals(modelId, that.modelId) && Objects.equals(subModelId, that.subModelId) && Objects.equals(ecuPartNum, that.ecuPartNum) && Objects.equals(ecuReqId, that.ecuReqId) && Objects.equals(ecuDid, that.ecuDid) && Objects.equals(ecuSwDid, that.ecuSwDid) && Objects.equals(ecuSn, that.ecuSn) && Objects.equals(supplierCode, that.supplierCode) && Objects.equals(softwareVersion, that.softwareVersion) && Objects.equals(hardwareVersion, that.hardwareVersion) && Objects.equals(productDate, that.productDate) && Objects.equals(status, that.status) && Objects.equals(upgradeType, that.upgradeType) && Objects.equals(createTime, that.createTime) && Objects.equals(clientTime, that.clientTime) && Objects.equals(serverTime, that.serverTime) && Objects.equals(updateTime, that.updateTime) && Objects.equals(partId, that.partId) && Objects.equals(partName, that.partName) && Objects.equals(requestId, that.requestId) && Objects.equals(modelName, that.modelName) && Objects.equals(brandName, that.brandName) && Objects.equals(productTime, that.productTime) && Objects.equals(isTest, that.isTest) && Objects.equals(brandCode, that.brandCode) && Objects.equals(source, that.source) && Objects.equals(isActive, that.isActive);
    }

    @Override
    public int hashCode() {
        return Objects.hash(domainCode, vin, modelId, subModelId, ecuPartNum, ecuReqId, ecuDid, ecuSwDid, ecuSn, supplierCode, softwareVersion, hardwareVersion, productDate, status, upgradeType, createTime, clientTime, serverTime, updateTime, partId, partName, requestId, modelName, brandName, productTime, isTest, brandCode, source, isActive);
    }

    @Override
    public String toString() {
        return "VehicleEcuDTO{" +
                "id=" + id +
                ", domainCode='" + domainCode + '\'' +
                ", vin='" + vin + '\'' +
                ", modelId=" + modelId +
                ", subModelId=" + subModelId +
                ", ecuPartNum='" + ecuPartNum + '\'' +
                ", ecuReqId='" + ecuReqId + '\'' +
                ", ecuDid='" + ecuDid + '\'' +
                ", ecuSwDid='" + ecuSwDid + '\'' +
                ", ecuSn='" + ecuSn + '\'' +
                ", supplierCode='" + supplierCode + '\'' +
                ", softwareVersion='" + softwareVersion + '\'' +
                ", hardwareVersion='" + hardwareVersion + '\'' +
                ", productDate='" + productDate + '\'' +
                ", status=" + status +
                ", upgradeType=" + upgradeType +
                ", createTime=" + createTime +
                ", clientTime=" + clientTime +
                ", serverTime=" + serverTime +
                ", updateTime=" + updateTime +
                ", partId=" + partId +
                ", partName='" + partName + '\'' +
                ", requestId='" + requestId + '\'' +
                ", modelName='" + modelName + '\'' +
                ", brandName='" + brandName + '\'' +
                ", productTime=" + productTime +
                ", isTest=" + isTest +
                ", brandCode='" + brandCode + '\'' +
                ", source=" + source +
                ", isActive=" + isActive +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDomainCode() {
        return domainCode;
    }

    public void setDomainCode(String domainCode) {
        this.domainCode = domainCode;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    public Long getSubModelId() {
        return subModelId;
    }

    public void setSubModelId(Long subModelId) {
        this.subModelId = subModelId;
    }

    public String getEcuPartNum() {
        return ecuPartNum;
    }

    public void setEcuPartNum(String ecuPartNum) {
        this.ecuPartNum = ecuPartNum;
    }

    public String getEcuReqId() {
        return ecuReqId;
    }

    public void setEcuReqId(String ecuReqId) {
        this.ecuReqId = ecuReqId;
    }

    public String getEcuDid() {
        return ecuDid;
    }

    public void setEcuDid(String ecuDid) {
        this.ecuDid = ecuDid;
    }

    public String getEcuSwDid() {
        return ecuSwDid;
    }

    public void setEcuSwDid(String ecuSwDid) {
        this.ecuSwDid = ecuSwDid;
    }

    public String getEcuSn() {
        return ecuSn;
    }

    public void setEcuSn(String ecuSn) {
        this.ecuSn = ecuSn;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getSoftwareVersion() {
        return softwareVersion;
    }

    public void setSoftwareVersion(String softwareVersion) {
        this.softwareVersion = softwareVersion;
    }

    public String getHardwareVersion() {
        return hardwareVersion;
    }

    public void setHardwareVersion(String hardwareVersion) {
        this.hardwareVersion = hardwareVersion;
    }

    public String getProductDate() {
        return productDate;
    }

    public void setProductDate(String productDate) {
        this.productDate = productDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUpgradeType() {
        return upgradeType;
    }

    public void setUpgradeType(Integer upgradeType) {
        this.upgradeType = upgradeType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getClientTime() {
        return clientTime;
    }

    public void setClientTime(Date clientTime) {
        this.clientTime = clientTime;
    }

    public Date getServerTime() {
        return serverTime;
    }

    public void setServerTime(Date serverTime) {
        this.serverTime = serverTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getPartId() {
        return partId;
    }

    public void setPartId(Long partId) {
        this.partId = partId;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public Date getProductTime() {
        return productTime;
    }

    public void setProductTime(Date productTime) {
        this.productTime = productTime;
    }

    public Integer getIsTest() {
        return isTest;
    }

    public void setIsTest(Integer isTest) {
        this.isTest = isTest;
    }

    public String getBrandCode() {
        return brandCode;
    }

    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public Integer getCurPage() {
        return curPage;
    }

    public void setCurPage(Integer curPage) {
        this.curPage = curPage;
    }

    public Integer getPageSize() {
        return PageSize;
    }

    public void setPageSize(Integer pageSize) {
        PageSize = pageSize;
    }
}
